#ifndef _WIFI_H
#define _WIFI_H
#include <string.h>
#include "usart.h"
extern void USART_printf(UART_HandleTypeDef *USARTx, char *Data, ...);
extern uint8_t wifi_RxBuff[256];
extern volatile uint8_t wifi_RxCounter; 
#define WiFi_RxCounter wifi_RxCounter
#define WiFi_RX_BUF wifi_RxBuff
#define ESP8266_USART(fmt, ...) USART_printf(&huart3, fmt, ##__VA_ARGS__)
#define u1_USART(fmt, ...) USART_printf(&huart1, fmt, ##__VA_ARGS__)
#define ID "iQOO"
#define PASSWORD "1234567890"

#define ServerIP "192.168.220.1"
#define ServerPort 8000


char WIFI_Config(int time, char *cmd, char *response);
char WIFI_Router(int time);
char WIFI_ConnectTCP(int time);
void WIFI_Connect(void);
void ESP8266_Clear(void);
#endif
